<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    {% if flag %}
    <meta charset="UTF-8" http-equiv="refresh" content="0.03;url={{ url_for('drawing_lottery')}}">
    {% elif not flag %}
    <meta charset="UTF-8"  content="5;url={{ url_for('stop_drawing_lottery')}}">
    {% endif %}
    <title>抽奖系统</title>
</head>
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="/static/bootstrap.css">
<body>
<!--{{name_grade}}-->
<br>
<div class="container m-5 align-items-lg-center" style="color: #6c757d;border: #0dcaf0 solid 1px">
    <div class="row">
        <div class="col-md-12" style="text-align: center">
            <h1><a href="{{ url_for('drawing_lottery')}}">抽奖</a></h1>
            <!--            {% if flag %}-->
            <!--            <meta charset="UTF-8" http-equiv="refresh" content="0.1;url={{ url_for('drawing_lottery')}}">-->
            <!--            {% endif %}-->
        </div>
        <div class="col-md-12" style="text-align: center">
            <h1><a href="{{ url_for('stop_drawing_lottery')}}">停止抽奖</a></h1>
<!--            {% if not flag %}-->
<!--            <meta http-equiv="refresh" content="5;url={{ url_for('index')}}">-->
<!--            <h1>抽奖已停止</h1>-->
<!--            {% endif %}-->
        </div>
        <div class="col-md-12" style="text-align: left;margin-left: 400px;margin-top: 50px">
            <h1> 被抽中学生姓名：{{name_drawn}}</h1>
            <br>
            <h1>被抽中学生年级：{{name_grade[name_drawn]}}{{name_class[name_drawn]}}</h1>
        </div>

    </div>
</div>

<!-- Bootstrap JS -->
<script src="/static/jquery3.6.0.js"></script>
</body>
</html>